package br.ufrgs.meetappsoapserver;

import br.ufrgs.meetappsoapserver.jaxws.CreateMeeting;
import br.ufrgs.meetappsoapserver.jaxws.Update;
import br.ufrgs.meetappsoapserver.jaxws.UpdateResponse;

public class ServerAdapter {

	private Server server = new Server();

	  public void createMeeting(CreateMeeting request){
	    String name = request.getArg0();
	    server.createMeeting(name);
	  }

	  public UpdateResponse update(Update request){
	    String name = request.getArg0();
	    String responseGreeting = server.update(name);
	    UpdateResponse response = new UpdateResponse();
	    response.setReturn(responseGreeting);
	    return response;
	  }
}
